package com.nbjtjc.common.bean;

public enum RECORDFROMENUM {
    TABLE("检查表",1) ,BASIS("'检查依据'",2),PHOTO("随手拍",3);
    private String name;
    private Integer code;
    public static String getName(Integer code){
        for(RECORDFROMENUM recordfromenum : RECORDFROMENUM.values()){
            if(recordfromenum.getCode().equals(code)){
                return recordfromenum.getName();
            }
        }
        return "";
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    RECORDFROMENUM(String name, Integer code) {
        this.name = name;
        this.code = code;
    }
}
